package com.pan.feign;

import com.pan.entity.Goods;
import com.pan.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient("goods-server")
public interface GoodsFeign {


    @GetMapping("/goods/select/list")
    @ResponseBody
    public Result<List<Goods>> selectGoodsList(@RequestParam("idList") List<Long> idList);

}
